<script setup lang="ts">
import AgDrawer from '@/components/AgDrawer.vue';

const isDrawerVisible = ref(false);

const currentData = ref<any>();

const handleClick = () => {
  currentData.value = { a: 1 };
  isDrawerVisible.value = true;
};

</script>

<template>
  <BkButton @click="handleClick">
    show
  </BkButton>
  <AgDrawer
    v-model="isDrawerVisible"
    title="xxx"
    :current-state="currentData"
    close-confirm
  >
    <div class="h-3240px" />
  </AgDrawer>
</template>

<style scoped lang="scss">

</style>
